axim_gpb: Make a right check of coordinate values.
authoroliskoli <oliskoli>
Sat, 26 Apr 2008 19:40:23 +0000 (19:40 +0000)
committeroliskoli <oliskoli>
Sat, 26 Apr 2008 19:40:23 +0000 (19:40 +0000)
axim_gpb.c

index 6d083cee89bfa4f1671a83fd88352d194e66c30f..a931ba0331a95323d6e22476fc862f25049f1bc8 100644 (file)
@@ -104,8 +104,8 @@ decode_buff(const char *buff, route_head *track)
                (tm.tm_hour > 23) || (tm.tm_min > 60) || (tm.tm_sec > 60),
                MYNAME ": Invalid or unsupported file (invalid time-stamp).");
        is_fatal(
-               (fabs(wpt->latitude) > 180) ||
-               (fabs(wpt->longitude) > 90),
+               (fabs(wpt->latitude) > 90) ||
+               (fabs(wpt->longitude) > 180),
                MYNAME ": Invalid or unsupported file (lat or/and lon out of range).");
 
        /* post work */